//
//  YTNetworkingTools.swift
//  Rhythm_SinaWeibo
//
//  Created by Mr.Rhythm on 9/26/15.
//  Copyright © 2015 Mr.Rhythm. All rights reserved.
//

import UIKit
import AFNetworking

class YTNetworkingTools: AFHTTPSessionManager {
    
    /// 网络工具单例
    static let sharedTools: YTNetworkingTools = {
        let instance = YTNetworkingTools(baseURL: nil)
        
        return instance
        }()
    
    private let appKey = "3707472336"
    private let appSecret = "2715fcc93b17fd3ecf7768f682b1f023"
    private let redirectURL = "http://www.baidu.com"
    
    /// OAuth 登录 URL 地址
    var oauthURL: NSURL {
        let urlString = "https://api.weibo.com/oauth2/authorize?client_id=\(appKey)&redirect_uri=\(redirectURL)"
        
        return NSURL(string: urlString)!
    }
    
    // MARK: - 封装网络请求方法
//    private func request {
//        
//    }
}
